package test1225;

public class Test15 {
    public static void m15(int[] arr){
        int a = arr[0];
        for (int i:arr){
            if(a == i){
                System.out.println(a);
            }
        }
    }
    public static void main(String[] args) {
        // 统计出数组中各个元素以及出现的次数
        int[] arr = {1,2,3,4,1,2,3,5,4,2};
        m15(arr);

    }
}
